package net.dasviertel.buddylockscreen.application;

import java.util.Locale;

import android.app.Application;

public class BaseApplication extends Application {

	private Locale locale;

	private static BaseApplication instance;

	public BaseApplication() {
		instance = this;
	}

	public static BaseApplication getInstance() {

		if (instance == null) {
			instance = new BaseApplication();
		}
		return instance;
	}

	@Override
	public void onCreate() {
		super.onCreate();
	}

	public Locale getLocale() {
		if (locale == null) {
			locale = getResources().getConfiguration().locale;
		}
		return locale;
	}

}
